package com.gxa.dao;


import com.gxa.pojo.Role;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RoleMapper {
@Select("select * from role ")
public List<Role> selectRole();

@Delete("delete  from role where role_name=#{role_name}")
    public int deleteRole(Role role);


@Insert("insert into role values (#{role_name},#{ role_type},#{role_state},#{role_id},#{role_date},#{role_updatename},#{role_update},#{role_operate})")
    public int insertRole(Role role);
}
